<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>日历控件——自定义日期格式</title>
    <script type="application/javascript" charset="utf-8" src="../laydate/laydate.js"></script>
    <script>
        window.onload = function () {
            laydate.skin('molv');
            laydate({
                elem: '#test1',
                format: 'YYYY/MM/DD', // 分隔符可以任意定义，该例子表示只显示年月
                festival: true, //显示节日
                choose: function(datas){ //选择日期完毕的回调
                    alert('得到：'+datas);
                }
            });
        }
    </script>
    <style>
        .inline{display:inline-block; *display:inline; *zoom:1; vertical-align:top;}
    </style>
</head>
<body>
<div id="test1" class="inline laydate-icon" style="width:150px;"></div>
</body>
</html>